def getAvg(list):
    sum = 0
    for i in list:
        sum+=i
    avg =sum/len(list)
    return avg

def getBigger(list):
    result = []
    avg = getAvg(list)
    for i in list:
        if i >avg:
            result.append(i)
    return result


weights = [40,35,28,40,27,23,32]

print(getBigger(weights))